import {selSQL,exSQL} from '@/utils/SQLiteRequest.js'

export function addUser(username){
	// var sql = "insert into user values(21,"12",'" + username + "')";
	return exSQL(sql);
}

export function addRPwd(){
	var date = new Date().valueOf();
	const sqlStr = "insert into r_pwd values("
		+ date + ",'"
		+ "myName" + date + "',"
		+ "'gridCode'"
		+ ")";
	return exSQL(sqlStr);
}

export function getList(){
	var sqlstr = 'select * from r_pwd';
	return selSQL(sqlstr);
}